<style>
div.box { border: 1px solid #ddd; width: 460px; padding: 10px 0; background: #fff; }
div.box a { color: #666; text-decoration: none; font-size: 13px; }
div.box a:hover { text-decoration: underline; }
div.title { font-size: 15px; margin-bottom: 5px; font-weight: bold; }
table.lo * { font-size: 12px; }
table.lo td { vertical-align: top; }
table.content { margin-left: 170px; }
table.content td.img { padding-top: 5px; }
table.content td.img img { width: 24px; }
table.content td.text { padding-left: 10px; vertical-align: middle; }
.pure_form_extra { background: #fff; padding: 10px; border: 1px solid #aaa; border-radius: 8px; font-size: 12px; font-family: Trebuchet MS; }
</style>

<?php if (!isset($_SESSION['user'])) { ?>
<table class="lo" cellpadding=0 cellspacing=0>
  <tr>
    <td>
      <div class="title">匿名购买</div>
      <div class="box">
        <table class="content" cellpadding=0 cellspacing=0 style="margin-left: 120px;">
          <tr>
            <td class="img"><i class="fa fa-exclamation-circle fa-2x"></i></td>
            <td class="text"><a href="#" onclick="return Url.redirect(__redmd, __sys + '.php?i=' + __id + '&__file=index_checkout');">继续，我不要登录</a></td>
          </tr>
        </table>
        <div style="margin: 5px 0 0 120px;"><b>不推荐</b></div>
      </div>
    </td>
    <td style="padding-left: 10px;">
      <div class="title">我是会员</div>
      <div class="box">
        <table class="content" cellpadding=0 cellspacing=0>
          <tr>
            <td class="img"><i class="fa fa-user fa-2x"></i></td>
            <td class="text"><a href="#" onclick="return Url.redirect(__redmd, __sys + '.php?i=' + __login_id + '&u=' + Utils.encodeURI(__sys + '.php?i=' + __id + '&__file=index_checkout'));">登录</a></td>
          </tr>
        </table>
        <div style="margin: 5px 0 0 140px;"><b>登录以后才有会员折扣哦</b></div>
      </div>
      <div>&nbsp;</div>
      <div class="title">还不是会员？2分钟注册</div>
      <div class="box">
        <table class="content" cellpadding=0 cellspacing=0 >
          <tr>
            <td class="img"><i class="fa fa-plus-circle fa-2x"></i></td>
            <td class="text"><a href="#" onclick="return Url.redirect(__redmd, __sys + '.php?i=' + __login_id + '&u=' + Utils.encodeURI(__sys + '.php?i=' + __id + '&__file=index_checkout'));">立即注册</a></td>
          </tr>
        </table>
        <div style="margin: 5px 0 0 140px;"><b>会员的好处</b></div>
        <ul style="margin: 5px 0 15px 140px;">
          <li>会员折扣</li>
          <li>可以查询购买的商品</li>
          <li>更好的客服</li>
          <li>特别的优惠</li>
        </ul>
      </div>
    </td>
  </tr>
</table>

<script type="text/javascript">
  var __redmd = '<?php echo addslashes($app_data->sys->redmd); ?>';
  var __sys = '<?php echo addslashes($app_data->sys->php_name); ?>';
  var __id = '<?php echo $app_data->param_id; ?>';
  var __login_id = '<?php echo $app_data->__login_id; ?>';
</script>
<?php } else { ?>
<div class="pure-form pure-form-aligned pure_form_extra">转到结账页面...</div>
<script type="text/javascript">
var __url = '<?php echo URL . HOME_DIR . $app_data->sys->php_name . '.php?i=' . $app_data->param_id . '&__file=index_checkout'; ?>';
if (parent != window) {
  parent.location.href = __url;
} else {
  location.href = __url;
}
</script>
<?php } ?>